package cn.cbsd.base

import cn.zhaosunny.soap.ISoapService
import cn.zhaosunny.soap.annonations.WebParam
import cn.zhaosunny.soap.annonations.WebService

/**
 *
 * @author zhaoyang 2021/12/1
 */
@WebService(targetNamespace = "http://dao.ws.cbsw.cn/", targetEndPoint = "cxf/cbswWebService")
interface ILoginService : ISoapService {

    suspend fun login(
        @WebParam(name = "username") username: String,
        @WebParam(name = "password") password: String,
        @WebParam(name = "shebei") shebei: String,
    ): UserInfo?


    suspend fun qiujiChaxun(
        @WebParam(name = "sn") sn: String?,
        @WebParam(name = "ipage") ipage: String?,
        @WebParam(name = "pagesize") pagesize: String?,
    ): List<UserInfo>
}

data class UserInfo(val compNo: String, val userId: String, val compName: String)